package com.spica.platform.user.config;

import com.spica.platform.base.config.BaseSpringWebMvcConfig;
import com.spica.platform.user.model.resolver.SysUserParamResolver;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;

import java.util.List;

@Configuration
public class CustomerWebMvcConfig extends BaseSpringWebMvcConfig {
    /**
     * Token参数解析
     * @param argumentResolvers 解析类
     */
    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        super.addArgumentResolvers(argumentResolvers);
        // 注入应用信息
        argumentResolvers.add(new SysUserParamResolver());
    }
}
